package com.security.door.service.Impl;

import com.security.door.core.base.BaseService;
import com.security.door.dao.mapper.baseRoleAuthMapper;
import com.security.door.model.domain.baseRoleAuth;
import com.security.door.model.vo.treeDataVo;
import com.security.door.service.IbaseRoleAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class baseRoleAuthServiceImpl extends BaseService<baseRoleAuth> implements IbaseRoleAuthService {

    @Autowired
    baseRoleAuthMapper ibaseRoleAuthMapper;

    @Override
    public List<baseRoleAuth> selectAuth(String rolecode) {
        return ibaseRoleAuthMapper.selectAuth(rolecode);
    }

    @Override
    public int deleteByRoleCode(String rolecode) {
        return ibaseRoleAuthMapper.deleteByRoleCode(rolecode);
    }

    @Override
    public int insertAuth(List<baseRoleAuth> list) {
        return ibaseRoleAuthMapper.insertAuth(list);
    }

    @Override
    public int deleteByMenuId(baseRoleAuth record) {
        return ibaseRoleAuthMapper.deleteByMenuId(record);
    }

    @Override
    public List<treeDataVo> selectTree(String rolecode) {
        return ibaseRoleAuthMapper.selectTree(rolecode);
    }

    @Override
    public List<treeDataVo> selectAllTree(Map map) {
        return ibaseRoleAuthMapper.selectAllTree(map);
    }

    @Override
    public int deleteMore(Map map) {
        return ibaseRoleAuthMapper.deleteMore(map);
    }


}
